package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 帖子表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("INVITATION")
@ApiModel(value="Invitation对象", description="帖子表")
@KeySequence("SEQ_INVITATION")
@NoArgsConstructor
@AllArgsConstructor
public class Invitation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "帖子表主键id")
    @TableId(value = "INVITATION_ID" , type = IdType.INPUT)
    private Integer invitationId;

    @ApiModelProperty(value = "帖子表题目")
    @TableField("INVITATION_TITLE")
    private String invitationTitle;

    @ApiModelProperty(value = "帖子发起者社区id")
    @TableField("COMMUNITY_ID")
    private Integer communityId;

    @ApiModelProperty(value = "帖子创建时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "帖子更新时间")
    @TableField("UPDATE_DATE")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "帖子热度")
    @TableField("HEAT")
    private Integer heat;

    @ApiModelProperty(value = "软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
